<php>$meta_title = "淘宝流量";</php>
<include file="Public:header" />
<tagLib name="html" />
<style type="text/css">
     .wrap-word{word-wrap:break-word;}
     td {
          white-space: pre-wrap;       /* css-3 */
           white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
            white-space: -pre-wrap;      /* Opera 4-6 */
             white-space: -o-pre-wrap;    /* Opera 7 */
              word-wrap: break-word;       /* Internet Explorer 5.5+ */
     }
</style>
<div id="main" class="main" >
<!-- 主体内容  -->
<div class="content" >
<!--  功能组区域  -->
<php>
    function refLink($id){
        $log = M('Weblog')->getById($id);
     echo ('<a href="'.$log['ref'].'" target="_blank">'.$log['ref_type'].'</a>');
	}
    function urlLink($id){
        $log = M('Weblog')->getById($id);
     echo ('<a href="'.$log['url'].'" target="_blank">'.$log['title'].'</a>');
	}
</php>
<div class="btn-toolbar">
	<div class="btn-group">
		<!--
		<button class="btn btn-primary" onclick="pick_goods()"> <i class="icon-shopping-cart  icon-white"></i>拣货单</button>		
		<button class="btn btn-primary" onclick="shipping()"> <i class="icon-download-alt  icon-white"></i>快递单</button>
		<button class="btn btn-primary" onclick="mass_doshipping()"> <i class="icon-plane  icon-white"></i>闪电发货</button>
        -->{$page}
	</div>
		<a class="btn btn-primary" href="__URL__/sale_trend" target="_blank"> <i class="icon-signal icon-white"></i>
			销量趋势
		</a>
		<a class="btn btn-primary" href="__URL__/search_review" target="_blank"> <i class="icon-question-sign icon-white"></i>
			搜索诊断
		</a>
        <a class="btn btn-info" href="__URL__/archive"><i class="icon-list  icon-white"></i>历史日志</a>
		<a class="btn btn-primary" href="__APP__/OrderAPI/getAllLog" target="_blank"> <i class="icon-circle-arrow-down icon-white"></i>
			同步日志
		</a>
        <a class="btn btn-info" href="__APP__/Tools/clean_trade_rate"><i class="icon-list  icon-white"></i>整理成交数据</a>
		导出
		<a href="__URL__/export_order?{$parameters}&etype=order&action={:ACTION_NAME}" class="btn">搜索结果</a>
	<form class="search-form" method='get' action="__URL__">
		店铺
		 <select name="order_source_id" class="span1">
            <option value="">-店铺选择-</option>
            <option value="3" <eq name="_REQUEST.order_source_id" value="3">selected</eq> >京卫</option>
            <option value="5" <eq name="_REQUEST.order_source_id" value="5">selected</eq> >德生堂</option>
            <option value="7" <eq name="_REQUEST.order_source_id" value="7">selected</eq> >亚洲</option>
        </select>
	    入店来源:{:configList(C('tb_ref_type'),$_REQUEST['src_id'],'src_id')} 
	    宝贝ID<input type="text" class="search-query span1" name="baobei_id" <notempty name='_REQUEST.baobei_id'>
		<php>echo 'value="'.urldecode($_REQUEST['baobei_id']).'"'</php>
		<else/>
		placeholder="product id" </notempty> >

	   关键词<input type="text" class="search-query span2" name="search_key" <notempty name='_REQUEST.search_key'>
		<php>echo 'value="'.urldecode($_REQUEST['search_key']).'"'</php>
		<else/>
		placeholder="search keywords" </notempty> >

	   访客编号<input type="text" class="search-query span2" name="user_day_no" <notempty name='_REQUEST.user_day_no'>
		<php>echo 'value="'.urldecode($_REQUEST['user_day_no']).'"'</php>
		<else/>
		placeholder="vistor number" </notempty> >

	被访页面标题
	<input type="text" class="search-query span2" name="title" <notempty name='_REQUEST.title'>
		<php>echo 'value="'.urldecode($_REQUEST['title']).'"'</php>
		<else/>
		placeholder="按页面标题搜索"
	</notempty>
	>
    <!--Advaced Search-->
     <div  id="searchM" class=" none search cBoth" >
		每页显示 <input type="text" class="span1" name="listRows" value="{$_REQUEST.listRows}">
	   IP<input type="text" class="search-query span2" name="ip" <notempty name='_REQUEST.ip'>
		<php>echo 'value="'.urldecode($_REQUEST['ip']).'"'</php>
		<else/>
		placeholder="ip" </notempty> >

	   来源URL<input type="text" class="search-query span2" name="ref" <notempty name='_REQUEST.ref'>
		<php>echo 'value="'.urldecode($_REQUEST['ref']).'"'</php>
		<else/>
		placeholder="refer url" </notempty> >
		访问页URL<input type="text" class="search-query span2" name="url" <notempty name='_REQUEST.url'>
		<php>echo 'value="'.urldecode($_REQUEST['url']).'"'</php>
		<else/>
		placeholder="visit url" </notempty> >

		备注<input type="text" class="search-query span2" name="remark" <notempty name='_REQUEST.remark'>
		<php>echo 'value="'.urldecode($_REQUEST['remark']).'"'</php>
		<else/>
		placeholder="备注" </notempty> >

	   地址区域<input type="text" class="search-query span2" name="address" <notempty name='_REQUEST.address'>
		<php>echo 'value="'.urldecode($_REQUEST['address']).'"'</php>
		<else/>
		placeholder="地址" </notempty> >
		<select name="time_type" class="span1"> 
			<option value="">--时间类型--</option>
			<option value="3" selected >访问时间</option> 
		</select>
		从<input type="text" class="span2"  name="start_time" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="<notempty name='_REQUEST.start_time'>{$_REQUEST.start_time}</notempty>">
		到<input type="text" class="span2" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="end_time" id="end_time" value="<notempty name='_REQUEST.end_time'>{$_REQUEST.end_time}</notempty>" >
     </div>
	<input type="submit" class="btn btn-primary input-middle" value="搜  索">
    <a class="btn btn-info" onclick="showHideSearch()" href="javascript:void(0)" ><i class="icon-chevron-down icon-white"></i> 更多</a>
	</form>
	
</div>
<!-- 功能组区域结束 -->
<!-- 列表显示区域  -->
<!--<div class="page">{$page}</div> -->
<div class="list" >
<div id="result" class="result none"></div><html:list id="checkList" pk="id" action="true" style="table table-bordered table-striped" checkbox="true"  datasource="list" show="id:编号|4%,create_time|toDate:访问时间,id|refLink:入店来源,search_key:关键词,id|urlLink:被访页面,baobei_id:宝贝ID|3%,location_name:位置,ip:IP,user_day_no:访客编号,order_source_id|getModelName='Order_source':订单来源" actionlist="edit:详情:id"/>
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<include file="Public:footer"/>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
